<table width="100%" border="0" cellpadding="0" cellspacing="0" class="guide">
	<tr>
		<td>
			<span style="float: left;">后台管理中心&nbsp;&raquo;&nbsp;提现管理</span>
			<span style="float: right;">
				<a href="javascript:history.go(-1);">&lt;- 返回</a>
			</span>
		</td>
	</tr>
</table>

<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tableborder">
	<tr class="header">
		<td colspan="7">提现列表</td>
	</tr>
	<tr class="category" align="center">
		<td width="10%">用户ID</td>
		<td width="10%">金额</td>
		<td width="30%">订单数</td>
		<td width="10%">状态</td>
		<td width="10%">申请时间</td>
		<td width="20%">提现账号</td>
		<td width="10%">操作</td>
	</tr>
<?php
foreach ($this->data as $row)
{
	$status = $this->withdrawals_status[$row['status']];
	if($row['status'] == 0){
	    $withdrawals = '<a href="./?controller=order&action=agreewithdrawals&id='.$row['id'].'">同意</a><br /><a href="./?controller=order&action=refusewithdrawals&id='.$row['id'].'">拒绝</a>';
	}else{
	    $withdrawals = '';
	}
	$count_arr = explode(',', $row['orderids']);
	$count = count($count_arr);
	echo <<<EOF
	<tr>
		<td class="altbg1" align="center">{$row['uid']}</td>
		<td class="altbg2" align="center">{$row['money']}</td>
		<td class="altbg1" align="center">{$count}</td>
		<td class="altbg2" align="center">{$status}</td>
		<td class="altbg1" align="center">{$row['createdate']}</td>
		<td class="altbg2" align="center">{$row['alipay']}</td>
		<td class="altbg1" align="center">
		    {$withdrawals}
		</td>
	</tr>
EOF;
}
?>
	<tr class="category">
		<td align="center" colspan="7">
			<?php echo $this->paging; ?>
		</td>
	</tr>
</table>
